﻿<cfsilent>
	<cfscript>
		
		sessionAdvice = getProperty("serviceFactory").getBean("sessionAdvice");
	
		event.setArg("pageTitle", "教师门户");
		
		targetArgs = structNew();
		
		sessionAdvice = getProperty("serviceFactory").getBean("sessionAdvice");
		
		teacherId = sessionAdvice.getAutherUserID();
		
		sql = "SELECT 1 FROM t_class a WHERE a.teacher_in_charge = :teacherId ";
				
		queryObj = new Query( datasource=application.dnsSlave ) ;
		queryObj.addParam( name="teacherId", value=teacherId, cfsqltype="cf_sql_varchar" );
		
		rs_class = queryObj.execute( sql=sql ).getResult();
	
		
		sql = "SELECT point_manager,paper_manager FROM t_teacher WHERE tch_id = :teacherId ";
				
		queryObj = new Query( datasource=application.dnsSlave ) ;
		queryObj.addParam( name="teacherId", value=teacherId, cfsqltype="cf_sql_varchar" );
		
		rs_teacher = queryObj.execute( sql=sql ).getResult();
	
	</cfscript>
</cfsilent>

<div id="headArea">
	<div class="uiHeader uiHeaderWithImage ptm">
		<div class="clearfix uiHeaderTop">
			<div class="uiHeaderActions rfloat">
				<a class="uiButton" href="<cfoutput>#buildURL('courseTable')#</cfoutput>"><i class="mrs img btnPublish"></i><span class="uiButtonText">个人课表</span></a>
			</div>
			<div>
				<h2 class="uiHeaderTitle">
					<i class="uiHeaderImage img icon16x16 program"></i>教学活动
				</h2>
			</div>
		</div>
	</div>
</div>

<div class="UIElement">
	<ul class="senateFirstPage">
		<li>
			<div class="clearfix" id="summary">
				
				<div class="noticeBlock">
					<h3>课堂教学工作</h3>
					<hr/>
				</div>

				<div class="clearfix">
					<ul class="UINavBoard">
						
						<li class="col3 first">
							<div class="board hasPic">
								<a href="<cfoutput>#buildURL('courseTable')#</cfoutput>">
									<div class="pic">
										<span class="icon48x48 courseTable"></span>
									</div>
									<div class="content">
										<h5>课表安排</h5>
										<p>查看您所承担的教学任务的时间、地点</p>
									</div>
								</a>
							</div>
						</li>
						
						<li class="col3">
							<div class="board hasPic">
								<a href="<cfoutput>#buildURL('courseTask')#</cfoutput>">
									<div class="pic">
										<span class="icon48x48 courseTask"></span>
									</div>
									<div class="content">
										<h5>教学任务</h5>
										<p>查看您所承担的教学工作</p>
									</div>
								</a>
							</div>
						</li>
                              
                              <li class="col3 last">
								<div class="board hasPic">
									<a href="<cfoutput>#buildURL('courseByDepartment')#</cfoutput>">
										<div class="pic">
											<span class="icon48x48 programCourse"></span>
										</div>
										<div class="content">
											<h5>课程查询</h5>
											<p>学院所承担的各类课程基础数据</p>
										</div>
									</a>
								</div>
							</li>
					</ul>
				</div>
                    
                    <cfif (rs_class.recordCount GT 0) or (rs_teacher.point_manager eq "1") OR (rs_teacher.paper_manager eq "1")>
                    
                         <div class="noticeBlock">
                              <h3>学生学籍管理</h3>
                              <hr/>
                         </div>
     
                         <div class="clearfix">
                              <ul class="UINavBoard">
                                   <cfif rs_class.recordCount GT 0 >
                                             <li class="col3 first">
                                                  <div class="board hasPic">
                                                       
                                                       <a href="<cfoutput>#buildURL('studentByHeadTeacher')#</cfoutput>">
                                                            <div class="pic">
                                                                 <span class="icon48x48 studentSubjectDirection"></span>
                                                            </div>
                                                            <div class="content">
                                                                 <h5>班主任管理班级</h5>
                                                                 <p>您作为班主任管理的班级在校学生注册学籍档案信息</p>
                                                            </div>
                                                       </a>
                                                  </div>
                                             </li>
                                             
                                             <cfif rs_teacher.point_manager eq "1">
                                                        <li class="col3">
                                                            <div class="board hasPic">
                                                                 <a href="<cfoutput>#buildURL('studentByPoint')#</cfoutput>">
                                                                      <div class="pic">
                                                                           <span class="icon48x48 gradDegreeReview"></span>
                                                                      </div>
                                                                      <div class="content">
                                                                           <h5>本科生学分指导</h5>
                                                                           <p>您作为学分指导教师管理的学生情况</p>
                                                                      </div>
                                                                 </a>
                                                            </div>
                                                       </li>
                                                       <cfif rs_teacher.paper_manager eq "1">
                                                       	 <li class="col3 last">
                                                                 <div class="board hasPic">
                                                                      <a href="<cfoutput>#buildURL('studentOfPaper')#</cfoutput>">
                                                                           <div class="pic">
                                                                                <span class="icon48x48 studentSubjectChangeReview"></span>
                                                                           </div>
                                                                           <div class="content">
                                                                                <h5>毕业论文指导</h5>
                                                                                <p>您作为毕业论文指导教师管理的学生情况</p>
                                                                           </div>
                                                                      </a>
                                                                 </div>
                                                            </li>
                                                       </cfif>
                                                  
                                                  <cfelse>
                                                  	 <cfif rs_teacher.paper_manager eq "1">
                                                       	 <li class="col3">
                                                                 <div class="board hasPic">
                                                                      <a href="<cfoutput>#buildURL('studentOfPaper')#</cfoutput>">
                                                                           <div class="pic">
                                                                                <span class="icon48x48 studentSubjectChangeReview"></span>
                                                                           </div>
                                                                           <div class="content">
                                                                                <h5>毕业论文指导</h5>
                                                                                <p>您作为毕业论文指导教师管理的学生情况</p>
                                                                           </div>
                                                                      </a>
                                                                 </div>
                                                            </li>
                                                       </cfif>
                                              </cfif>
                                              
                                         <cfelse>
                                         	<cfif rs_teacher.point_manager eq "1">
                                                    <li class="col3 first">
                                                        <div class="board hasPic">
                                                             <a href="<cfoutput>#buildURL('studentByPoint')#</cfoutput>">
                                                                  <div class="pic">
                                                                       <span class="icon48x48 gradDegreeReview"></span>
                                                                  </div>
                                                                  <div class="content">
                                                                       <h5>本科生学分指导</h5>
                                                                       <p>您作为学分指导教师管理的学生情况</p>
                                                                  </div>
                                                             </a>
                                                        </div>
                                                   </li>
                                                   <cfif rs_teacher.paper_manager eq "1">
                                                         <li class="col3">
                                                             <div class="board hasPic">
                                                                  <a href="<cfoutput>#buildURL('studentOfPaper')#</cfoutput>">
                                                                       <div class="pic">
                                                                            <span class="icon48x48 studentSubjectChangeReview"></span>
                                                                       </div>
                                                                       <div class="content">
                                                                            <h5>毕业论文指导</h5>
                                                                            <p>您作为毕业论文指导教师管理的学生情况</p>
                                                                       </div>
                                                                  </a>
                                                             </div>
                                                        </li>
                                                   </cfif>
                                              
                                              <cfelse>
                                                    <cfif rs_teacher.paper_manager eq "1">
                                                         <li class="col3 first">
                                                             <div class="board hasPic">
                                                                  <a href="<cfoutput>#buildURL('studentOfPaper')#</cfoutput>">
                                                                       <div class="pic">
                                                                            <span class="icon48x48 studentSubjectChangeReview"></span>
                                                                       </div>
                                                                       <div class="content">
                                                                            <h5>毕业论文指导</h5>
                                                                            <p>您作为毕业论文指导教师管理的学生情况</p>
                                                                       </div>
                                                                  </a>
                                                             </div>
                                                        </li>
                                                   </cfif>
                                          </cfif>
                                    </cfif>
                                   
                              </ul>
                         </div>
                    
                    </cfif>
				
				<div class="noticeBlock">
					<h3>课程成绩管理</h3>
					<hr/>
				</div>
				
				<div class="clearfix">
					<ul class="UINavBoard">
					
						<li class="col3 first">
							<div class="board hasPic">
								<a href="<cfoutput>#buildURL('taskMark')#</cfoutput>">
									<div class="pic">
										<span class="icon48x48 taskMark"></span>
									</div>
									<div class="content">
										<h5>课程成绩</h5>
										<p>提交您所承担的教学任务的课程考核成绩</p>
									</div>
								</a>
							</div>
						</li>
						
						<!---<li class="col3">
							<div class="board hasPic">
								<a href="<cfoutput>#buildURL('taskMarkResit')#</cfoutput>">
									<div class="pic">
										<span class="icon48x48 taskMarkResit"></span>
									</div>
									<div class="content">
										<h5>补考成绩</h5>
										<p>提交您所承担的教学任务的课程补考成绩</p>
									</div>
								</a>
							</div>
						</li>--->

					</ul>
				</div>
				
				<div class="noticeBlock">
					<h3>考试任务安排</h3>
					<hr/>
				</div>
                
                <div class="clearfix">
					<ul class="UINavBoard">
						
						<li class="col3 first">
							<div class="board hasPic">
								<a href="<cfoutput>#buildURL('examTask')#</cfoutput>">
									<div class="pic">
										<span class="icon48x48 examTask"></span>
									</div>
									<div class="content">
										<h5>考试安排</h5>
										<p>查看您本学期承担教学任务的考试安排</p>
									</div>
								</a>
							</div>
						</li>
						
					</ul>
				</div>
				
				<!---<div class="noticeBlock">
					<h3>教学质量评价</h3>
					<hr/>
				</div>
				
				<div class="clearfix">
					<ul class="UINavBoard">
						
						<li class="col3 first">
							<div class="board hasPic">
								<a href="<cfoutput>#buildURL('evaluateStatus')#</cfoutput>">
									<div class="pic">
										<span class="icon48x48 evaluateStatus"></span>
									</div>
									<div class="content">
										<h5>网上评教</h5>
										<p>查看您本学期承担教学任务的网上评教数据</p>
									</div>
								</a>
							</div>
						</li>
						
					</ul>
				</div>--->
				
				
				
			</div>
		</li>
	</ul>
</div>